package com.qianf.qfoffice.dao;

import com.qianf.qfoffice.entity.Exercises;

import java.util.List;

public interface ExercisesDao {

    /**
     * 增加练习
     * @param exercises
     * @return
     */
    public int  addExercises(Exercises exercises);

    /**
     * 展示所有练习
     */
    public List<Exercises> selectExercises();

    /**
     * 根据id删除相应的练习题
     * @param id
     * @return
     */
    public int deleteExerciseById(int id);

    /**
     * 根据id查询习题信息
     * @param id
     * @return
     */
    public Exercises selectExerciseById(int id);


}
